package cn.dz.factory;

import cn.dz.dao.UserDao;
import cn.dz.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * @ClassName MyBeanFactory3
 * @package: cn.dz.factory
 * @Description TODO
 * @Author dz
 * @Date 2025/2/12 9:38
 * @Version 1.0
 **/
public class MyBeanFactory3 implements FactoryBean {
    @Override
    public UserDao getObject() throws Exception {
        System.out.println("getObject被调用");
        return new UserDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
